package com.balabala.gym_system.api;

import com.balabala.gym_system.pojo.dto.ReservationInfoDto;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Author:zl
 * Date:2023/5/8 16:17
 */
@FeignClient(value = "gym-system-service", contextId = "addReservationInfoFeign")
public interface AddReservationInfoFeignClient {
    /**
     * 添加预约记录
     *
     * @param reservationInfoDto
     * @return
     */
    @PostMapping("/admin/ReservationInfo/addReservationInfo")
    public Result addReservationInfo(@RequestBody ReservationInfoDto reservationInfoDto);

}